package com.ask.forMe.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GroupBuyTeam {
    public static final Integer STATUS_PENDING = 0; // 待支付？？
    public static final Integer STATUS_ACTIVE = 1; // 拼单中
    public static final Integer STATUS_COMPLETED = 2; // 拼单完成
    public static final Integer STATUS_FAILED = 3; // 拼单失败
    Long id;
    Long activityId;      // 关联的活动ID
    Long leaderId;        // 团长用户ID
    Integer currentMembers; // 当前人数
    LocalDateTime createTime;      // 创建时间
    LocalDateTime expireTime;      // 过期时间
    Integer status;        // 状态：拼单中、已成团、已失效
}